package com.example.parkdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.user.VisitorBeanItem
import com.example.parkdemo.R
import java.sql.Date
import java.text.SimpleDateFormat

class VisitorAdapter : BaseQuickAdapter<VisitorBeanItem, BaseViewHolder>(R.layout.item_visitor) {
    override fun convert(holder: BaseViewHolder, item: VisitorBeanItem) {


        holder.setText(R.id.item_visitor_start_now_time, item.visitorStart)
        holder.setText(R.id.visitor_end_now_time, item.visitorEnd)
        holder.setText(R.id.visitor_coment_et, item.visitorDescribe)
        holder.setText(R.id.visitor_day, item.visitorTime)
        holder.setText(R.id.visitor_car_et, item.carNum)


    }
}